package com.Java.train.common.exception;

// 枚举所有业务异常
public enum BusniessExceptionEnum {
    MEMBER_MOBILE_EXITS("手机号已注册"),
    MEMBER_MOBILE_NOT_EXITS("请先获取验证码"),
    MEMBER_MOBILE_CODE_ERROR("验证码错误"),
    MEMBER_CODE_PASS_AWAY("验证码过期"),
    MEMBER_PASSENGER_NOT_EXITS("乘车人信息不存在"),
    BUSINESS_TRAIN_NOT_EXITS("火车信息不存在"),
    BUSINESS_STATION_NOT_EXITS("车站信息不存在"),
    BUSINESS_SEAT_ALREADY_EXITS("座位信息已生成"),
    BUSINESS_STATION_ALREADY_EXITS("该站点已经存在"),
    BUSINESS_CARRIAGE_ALREADY_EXITS("该车厢已经存在"),
    BUSINESS_TRAIN_ALREADY_EXITS("该列车已经存在"),
    BUSINESS_TRAINSTATION_ALREADY_EXITS("该火车车站已经存在"),
    BUSINESS_TRAINSTATION_NOT_EXITS("该火车车站不存在"),
    BUSINESS_TICKET_NOT_EXITS("该车票不存在"),
    BUSINESS_TICKET_TIME_PASS("该日期已失效"),
    BUSINESS_TICKET_ALREADY_SELL_OVER("该票已售空，请选购其他座次"),
    BUSINESS_TICKET_NOT_ENOUGH("余票不足"),
    BUSINESS_CONFIRM_ORDER_EXCEPTION("购票出现异常，生成订单失败"),
    CONFIRM_ORDER_LOCK_FAIL("没抢到确认订单锁"),
    CONFIRM_ORDER_FLOW_EXCEPTION("当前购票人数太多，请稍后重试"),
    TICKET_TOKEN_ALREADY_EXITS("抱歉，当前抢票人数过多"),
    IMAGE_CODE_WRONG("验证码输入错误"),
    IMAGE_CODE_PASS_AWAY("验证码已过期"),
    CONFIRM_ORDER_NOT_EXITS("没有任何订单");
    

    private String desc;

    BusniessExceptionEnum(String desc) {
        this.desc = desc;
    }

    public String getDesc() {
        return desc;
    }
}
